package mortal.game.control
{
    import mortal.common.sound.*;
    import mortal.game.events.*;
    import mortal.game.mvc.*;
    import mortal.game.scene.map.*;
    import mortal.mvc.core.*;

    public class MusicAndSoundsController extends Controller
    {

        public function MusicAndSoundsController()
        {
            
        }

        override protected function initServer() : void
        {
            Dispatcher.addEventListener(EventName.ChangeScene, this.onChangeSceneHandler);
            
        }

        private function onChangeSceneHandler(event:DataEvent) : void
        {
            SoundManager.instance.setBackGroundMusic(MapFileUtil.mapID, "");
            
        }

    }
}
